﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using BrightIdeasSoftware;
using Managistics.Warehouse.Views.Libs.NNGrid.Datas;

namespace Managistics.Warehouse.Views.Libs.NNGrid.Columns
{
    public class NNGridColumn : OLVColumn
    {
        private NNControlType controlType;
        private NNControlRender controlRender;
        private CellEditEventHandler cellEditStarting;
        private CellEditEventHandler cellEditFinishing;

        public NNGridColumn()
        {
            this.IsEditable = false;
            
        }

        public NNGridColumn(NNControlType controlType, NNControlRender controlRender = null)
        {
            this.ControlType = controlType;
            this.ControlRender = controlRender == null ? new NNControlRender() : controlRender;
        }

        public NNControlType ControlType
        {
            get { return controlType; }
            set { controlType = value; }
        }
        public NNControlRender ControlRender
        {
            get { return controlRender; }
            set { controlRender = value; }
        }

        public CellEditEventHandler CellEditStarting
        {
            get { return this.cellEditStarting; }
            set { this.cellEditStarting = value; }
        }

        public CellEditEventHandler CellEditFinishing
        {
            get { return this.cellEditFinishing; }
            set { this.cellEditFinishing = value; }
        }
               
    }
}
